package com.example.glidelearningproject.fragment;

import android.view.View;

import com.xuexiang.xpage.annotation.Page;
import com.xuexiang.xpage.base.XPageContainerListFragment;
import com.xuexiang.xpage.utils.TitleBar;
import com.xuexiang.xutil.common.ClickUtils;

@Page(name = "主页")
public class MainFragment extends XPageContainerListFragment {
    @Override
    protected Class[] getPagesClasses() {
        return new Class[]{
                GlideSimpleFragment.class
        };
    }

    @Override
    protected TitleBar initTitleBar() {
        return super.initTitleBar().setLeftClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ClickUtils.exitBy2Click();
            }
        });
    }
}
